package com.alipay.commerce;

import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.factory.AlipayAPIClientFactory;

/**
 * 卡卷相关业务调用接口
 * 
 * @author zwm
 *
 */
public class SendCards {

	public static void main(String[] args) throws AlipayApiException {
		sendCards();
	}

	// 图片资料上传
	public static void sendCards() throws AlipayApiException {
		
		AlipayClient alipayClient = AlipayAPIClientFactory.getAlipayClient();
		AlipayCommerceDataSendRequest request = new AlipayCommerceDataSendRequest();
		request.setBizContent("{" +
		"    \"scene_code\":\"vehicle_driving_licence\"," +
		"    \"op_code\":\"data_save\"," +
		"    \"channel\":\"SZJJ\"," +
		"    \"version\":\"1.0\"," +
		"    \"target_id\":\"2088101122835060\"," +
		"    \"target_id_type\":\"ALIPAY_USER_ID\"," +
		"    \"scene_data\":{\"info\":[{\"vd_license_number\":\"驾驶证号\",\"vd_name\":\"姓名\",\"gender\":\"性别\"}]}" +
		"  }");
		AlipayCommerceDataSendResponse response = alipayClient.execute(request);
		 
	}

}
